package com.dianping.cat.home.dependency.config.entity;

import com.dianping.cat.home.dependency.config.BaseEntity;
import com.dianping.cat.home.dependency.config.IVisitor;







public class DomainConfig
  extends BaseEntity<DomainConfig>
{
  private String m_id;
  private int m_warningThreshold;
  private int m_errorThreshold;
  private double m_warningResponseTime;
  private double m_errorResponseTime;
  private int m_minCountThreshold = 100;





/*  26 */   public DomainConfig(String id) { this.m_id = id; }




  public void accept(IVisitor visitor) { visitor.visitDomainConfig(this); }


  
  public boolean equals(Object obj) {
    if (obj instanceof DomainConfig) {
/*  37 */       DomainConfig _o = (DomainConfig)obj;

/*  39 */       if (!equals(getId(), _o.getId())) {
/*  40 */         return false;
      }
      
/*  43 */       return true;
    }
    
/*  46 */     return false;
  }

  
/*  50 */   public double getErrorResponseTime() { return this.m_errorResponseTime; }



/*  54 */   public int getErrorThreshold() { return this.m_errorThreshold; }



/*  58 */   public String getId() { return this.m_id; }



/*  62 */   public int getMinCountThreshold() { return this.m_minCountThreshold; }



/*  66 */   public double getWarningResponseTime() { return this.m_warningResponseTime; }



/*  70 */   public int getWarningThreshold() { return this.m_warningThreshold; }


  
  public int hashCode() {
/*  75 */     int hash = 0;

/*  77 */     return hash * 31 + ((this.m_id == null) ? 0 : this.m_id.hashCode());
  }



  
  public void mergeAttributes(DomainConfig other) {
/*  84 */     assertAttributeEquals(other, "domain-config", "id", this.m_id, other.getId());

/*  86 */     this.m_warningThreshold = other.getWarningThreshold();

/*  88 */     this.m_errorThreshold = other.getErrorThreshold();

/*  90 */     this.m_warningResponseTime = other.getWarningResponseTime();

/*  92 */     this.m_errorResponseTime = other.getErrorResponseTime();

/*  94 */     this.m_minCountThreshold = other.getMinCountThreshold();
  }
  
  public DomainConfig setErrorResponseTime(double errorResponseTime) {
/*  98 */     this.m_errorResponseTime = errorResponseTime;
/*  99 */     return this;
  }
  
  public DomainConfig setErrorThreshold(int errorThreshold) {
/* 103 */     this.m_errorThreshold = errorThreshold;
/* 104 */     return this;
  }
  
  public DomainConfig setId(String id) {
/* 108 */     this.m_id = id;
/* 109 */     return this;
  }
  
  public DomainConfig setMinCountThreshold(int minCountThreshold) {
/* 113 */     this.m_minCountThreshold = minCountThreshold;
/* 114 */     return this;
  }
  
  public DomainConfig setWarningResponseTime(double warningResponseTime) {
/* 118 */     this.m_warningResponseTime = warningResponseTime;
/* 119 */     return this;
  }
  
  public DomainConfig setWarningThreshold(int warningThreshold) {
/* 123 */     this.m_warningThreshold = warningThreshold;
/* 124 */     return this;
  }
  
  public DomainConfig() {}
}


/* Location:              /Users/hanfei/Documents/apache-tomcat-9.0.24/webapps/cat/WEB-INF/classes/!/com/dianping/cat/home/dependency/config/entity/DomainConfig.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.0.7
 */